package com.campus.counseling.model.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.campus.counseling.entity.SysRegisterLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysRegisterLogMapper extends BaseMapper<SysRegisterLog> {
    
    /**
     * 查询最近的注册日志
     * @param limit 限制返回记录数
     * @return 注册日志列表
     */
    @Select("SELECT * FROM sys_register_log ORDER BY create_time DESC LIMIT #{limit}")
    List<SysRegisterLog> selectRecentLogs(Integer limit);
} 